<?php include "conn.php";?>
<?php
if(isset($_POST["mobile"])){$usrName =trim($_POST["mobile"]);}else{$usrName="";}
$sql2 = "select * from d_guest where g_name ='$usrName'";
$conn2=new Mysql();
$is_u2= $conn2->query($sql2);
if($is_u2){
    $rs=$conn2->getOne($sql2);
    $_SESSION["UserID"] = $rs["id"];
    $_SESSION["DUserName"] = $rs["g_name"];
}else{
    echo "登录失败";

}
?>